<div id="flexigrid-querys" class="fisherFilterDiv"  style="display: <#if fisher.defaultDisplayQuery?default("false")=="true">block<#else>none</#if>">
	<fieldset id="flexigrid-query" class="fisherFilterFieldset">
		<legend>
			<span class="fisherFilterTitle" onclick="fisherShowQuery()">查询条件</span><img src="${contextPath}/fisher/css/images/close.png" onclick="fisherRemoveQuery(this)" style="cursor: hand;" width="14" height="14" title="删除查询条件" align="middle">
		</legend>
		<table id="flexigrid-filter" class="fisherFilterQueryTable" >
		<#assign columnCount=fisher.queryBreak?default("3")?number>
		<#assign searchCount=0>
		<#list fisher.grid.columnList as column >
		  <#if column.searchable=="true" && column.visual=="true" >
		  	<#if searchCount%columnCount==0>
		  	<tr class="fisherFilterTr" >
		  	</#if>
				<td class="fisherFilterLableTd" >
					${column.display}：
				</td> 
				<td class="fisherFilterTypeTd" ><#--查询条件类型-->
					<select name="fisher#type#${column.name}">
						<#list fisher.grid.getColumnFilter(column).getConditionOptions(column) as options >
							<option value="${options.value}" title="${options.name}">${options.name}</option>
						</#list>				
					</select>
				</td>
				<td class="fisherFilterValueTd" ><#--查询条件值-->
				<#if fisher.grid.getColumnFilter(column).getValueOptions(column)?exists>
				    <#assign enumtype="checkbox"><#--枚举值类型，默认为checkbox-->
				    <#if column.parameterMap.type?exists>
				    	<#assign enumtype=column.parameterMap.type>
				    </#if>
					<#if enumtype=="checkbox"||enumtype=="radio">
						<#--多选checkbox或者单选radio查询条件值-->
						<input type="text" name="fisher#text#${column.name}" readonly="true" class="fisherFilterTextInput" onclick="fisherShowEnumValues(this,'fisher#value#${column.name}','fisher#text#${column.name}','fisher#div#${column.name}')"  onkeydown="if(event.keyCode==13){fisherSearch();}"   onfocus="this.parentElement.style.borderWidth='2px;';" onblur="this.parentElement.style.borderWidth='1px;';">
						<input type="hidden"  name="fisher#value#${column.name}" id="${column.type}#${column.display}#${fisher.grid.getColumnFilter(column).getValidatePattern()?default("")}#${fisher.grid.getColumnFilter(column).getValidateMessage()?default("")}" value=""/>	
						<div name="fisher#div#${column.name}" onmouseover="$(this).show();" onmouseout="$(this).hide();">
							<table style="padding:0;margin:0;border:0;width:100%;">			
							<#list fisher.grid.getColumnFilter(column).getValueOptions(column) as options >
								  <tr>
								      <td style="border-bottom: dashed 1px silver;align:absmiddle;"  onmouseover="$(this).css('background-color','#E7FFD2');" onmouseout="$(this).css('background-color','white');">
										<input type="${enumtype}"  name="fisher#${enumtype}#${column.name}" id="fisher#${enumtype}#${column.name}#${options.value}" value="${options.value}" onclick="fisherSetEnumValues(this,'fisher#${enumtype}#${column.name}','fisher#value#${column.name}','fisher#text#${column.name}')"/>
										<label for="fisher#${enumtype}#${column.name}#${options.value}" title="${options.name}">${options.name}</label>	
									  </td>
								  </tr>
							</#list>
							</table>
						</div>	
					<#else>
						<#--下拉select查询条件值-->
						<select name="fisher#value#${column.name}" id="${column.type}#${column.display}#${fisher.grid.getColumnFilter(column).getValidatePattern()?default("")}#${fisher.grid.getColumnFilter(column).getValidateMessage()?default("")}">
						    <option value=""></option>
							<#list fisher.grid.getColumnFilter(column).getValueOptions(column) as options >
								<option value="${options.value}" title="${options.name}">${options.name}</option>
							</#list>
						</select>	
					</#if>
				<#elseif  fisher.grid.getColumnFilter(column).getValueOption(column)?exists >
					<#--旧枚举选择查询条件值-->
					<select name="fisher#value#${column.name}" id="${column.type}#${column.display}#${fisher.grid.getColumnFilter(column).getValidatePattern()?default("")}#${fisher.grid.getColumnFilter(column).getValidateMessage()?default("")}" >
						${fisher.grid.getColumnFilter(column).getValueOption(column)}
					</select>			
				<#else>
					<#--输入查询条件值-->
					<input type="text"  name="fisher#value#${column.name}" id="${column.type}#${column.display}#${fisher.grid.getColumnFilter(column).getValidatePattern()?default("")}#${fisher.grid.getColumnFilter(column).getValidateMessage()?default("")}" value="" onkeydown="if(event.keyCode==13){fisherSearch();}"  style="height: 100%;border: 0;"   onfocus="this.parentElement.style.borderWidth='2px;';" onblur="this.parentElement.style.borderWidth='1px;';"
					<#if column.type=="date">
						class="Wdate fisherFilterValueInput" onclick="WdatePicker({readOnly:false,highLineWeekDay:true,skin:'whyGreen'});" <#t>
					<#elseif column.type=="datetime">
						class="Wdate fisherFilterValueInput" onclick="WdatePicker({readOnly:false,highLineWeekDay:true,skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'});" <#t> 
					<#else>
						class="fisherFilterValueInput"<#t> 
					</#if>
					/><#lt>
				</#if>	
				</td>
		  	<#if (searchCount+1)%columnCount==0>
		  	</tr>
		  	</#if>  	
			  	<#assign searchCount=searchCount+1>		
			</#if>				
		</#list>
		<#if searchCount%columnCount!=0>
			</tr>
		</#if>
		</table>
	</fieldset>
	<table id="flexigrid-buttons" class="fisherFilterButtonTable" align="center">
		<tr  class="fisherFilterTr"  align="center">
			<td colspan="100" class="fisherFilterButtonTd">
				<table>
					<tr>
						<td>
							<div class="btnWhite"  onclick="fisherSearch()" onMouseOver="this.className='btnWhiteHover'" onMouseOut="this.className='btnWhite'" onMouseDown="this.className='btnWhiteClick'" onMouseUp="this.className='btnWhiteHover'">查 询</div>					
						</td>
						<td>
							<div class="btnWhite"  onclick="fisherClearCondition()" onMouseOver="this.className='btnWhiteHover'" onMouseOut="this.className='btnWhite'" onMouseDown="this.className='btnWhiteClick'" onMouseUp="this.className='btnWhiteHover'">清 空</div>					
						</td>
						<td>
							<div class="btnWhite"  onclick="fisherShowQuery()" onMouseOver="this.className='btnWhiteHover'" onMouseOut="this.className='btnWhite'" onMouseDown="this.className='btnWhiteClick'" onMouseUp="this.className='btnWhiteHover'">隐藏条件</div>					
						</td>							
						<td>
							<div class="btnWhite"  onclick="fisherCopyQuery()" onMouseOver="this.className='btnWhiteHover'" onMouseOut="this.className='btnWhite'" onMouseDown="this.className='btnWhiteClick'" onMouseUp="this.className='btnWhiteHover'">增加条件</div>					
						</td>						
					</tr>
				</table>
			</td>
		</tr>
	</table>	
</div>
<span  style='clear:both;'/>